#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
int n;
int a[N], ans;

int main() {
	cin >> n;
	for (int i = 1; i <= n; ++i) {
		cin >> a[i];
	}
	sort(a, a + n);
	for (int i = n; i > 0; --i) {
		if (ans + a[i] > ans) {
			ans += a[i];
		}
	}
	if (ans % 2 == 1) {
		cout << ans << endl;
	} else {
		int i = 1;
		while (a[i] % 2 != 1 ) {
			++i;
		}
		cout << ans - a[i] << endl;
	}
	return 0;
}